<style>
  .basemenus_table1 {
    width: 100%;
    margin:30px 0 0 0;
  }
  .basemenus_table2 {
    background-color:#c3d9ff;
    width: 100%;
    height:30px;
    text-align:center;
    margin-bottom:0;
  }
  .basemenus_table3 {
    width: 100%;
    height:23px;
  }
  .basemenus_td0 {
    height: 23px;
    width:100%;
  }
  .basemenus_td1 {
    cursor: pointer;
    background-color:#e5ecf9;
  }
  .basemenus_td1Hilight {
    cursor: pointer;
    font-weight: bold;
    background-color:#c3d9ff;
  }
  .basemenus_td3 {
    padding: 4px 8px 3px;
    height: 16px;
    white-space:nowrap;
    text-align: center;
    vertical-align: middle;
    font-size: 10pt;
    color: blue; 
    text-decoration: underline ;
    font-family: Arial;
    cursor: pointer;
  }
  .basemenus_td3Hilight {
    padding: 4px 8px 3px;
    height: 16px;
    white-space:nowrap;
    text-align: center;
    vertical-align: middle;
    font-size: 10pt;
    font-family: Arial;
    cursor: pointer;
  }
  .basemenus_td4 {
    width: 100%;
    height: 23px;
  }
  .basemenus_td5 {
    width: 1px;
    height: 23px; 
    font-size:10pt;
    text-align: center;
    vertical-align: middle;
  }
  .basemenus_td6 {
    cursor: default;
    height: 13px; 
    font-size:8pt;
    color:red;
    text-align: center;
    vertical-align: middle;
  }
  .basemenus_item div{
    height:1px;
    overflow:hidden;
    border-left:1px solid #c3d9ff;
    border-right:1px solid #c3d9ff;
  }
  .basemenus_item .row1{
    margin:0 5px;
   }
  .basemenus_item .row2{
    margin:0 3px;
    border:0 2px;
  }
  .basemenus_item .row3{
    margin:0 2px;
  }
  .basemenus_item .row4{
    margin:0 1px;
    height:2px;
  }
  .basemenus_item1 div{
    height:1px;
    overflow:hidden;
    border-left:1px solid #e5ecf9;
    border-right:1px solid #e5ecf9;
  }
  .basemenus_item1 .row1{
    margin:0 5px;
   }
  .basemenus_item1 .row2{
    margin:0 3px;
    border:0 2px;
  }
  .basemenus_item1 .row3{
    margin:0 2px;
  }
  .basemenus_item1 .row4{
    margin:0 1px;
    height:2px;
  }
  .basemenus_p{
    padding: 0 13px;
    height:16px;
    background-color:#c3d9ff;
    vertical-align:bottom;
    padding-bottom:3px;
    margin:0;
    white-space: nowrap;
  }
  .basemenus_ph{
    padding: 0 13px;
    height:16px;
    background-color:#e5ecf9;
    vertical-align:bottom;
    padding-bottom:3px;
    margin:0;
    white-space: nowrap;
  }
  .basemenus_td1Hilight a{
    text-decoration:none;
    font-size:10pt; 
    color:black;
    outline: none;
    font-family: Verdana;
  }
  .basemenus_td1 a{
    text-decoration:none;
    font-size:10pt; 
    color:black;
    outline: none;
    font-family: Arial;
  } 
  .basemenus_td3Hilight a{
    color:black;
    font-size:10pt; 
    text-decoration:none;
    outline: none;
    font-family: Trebuchet MS;
  }
  .basemenus_td3 a{
    font-size:10pt; 
    outline: none;
    font-family: Trebuchet MS;
  }
  .basemenus_td6 a{
    color:red;
  }
  .basemenus_btm{
    height: 20px;
    padding: 5px 13px 0;
    text-align: center;
    white-space: nowrap;
  }
</style>

<table class="basemenus_table1"  cellPadding="0" cellSpacing="0" border=0>
  <tr>
    {{if $menu->a == 1}}
    <td class="basemenus_td1Hilight" onclick="location.href='?t=client'">
    {{else}}
    <td class="basemenus_td1" onclick="location.href='?t=client'">
    {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm"><a href='?t=client'>Client</a></div>
    </td>
    <td>&nbsp;&nbsp;</td>
    {{if $menu->a == 2}} 
    <td class="basemenus_td1Hilight" onclick="location.href='?t=visabatch'">
    {{else}}
    <td class="basemenus_td1" onclick="location.href='?t=visabatch'">
    {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm"><a href='?t=visabatch'>Visa</a></div>
    </td>
    <td>&nbsp;&nbsp;</td>
    {{if $menu->a == 3}} 
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=duevisas'">
    {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=duevisas'">
    {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm"><a href='?t=duevisas'>Due Soon</a><span id="basemenu_due_soon" style="color: #ff0000;font-family: Comic Sans MS;" /></div>
    </td>
    <td>&nbsp;&nbsp;</td>
    {{if $u->type == $smarty.const.USER_TYPE_ADMIN}}
    {{if $menu->a == 4}} 
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=users'">
    {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=users'">
    {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=users'>Administer</a>
      </div>
    </td>
    {{else}}
    {{if $menu->a == 4}} 
    <td class="basemenus_td1Hilight"  onclick="location.href='?t=account'">
    {{else}}
    <td class="basemenus_td1"  onclick="location.href='?t=account'">
    {{/if}}
      <div class="round4"></div>
      <div class="round2"></div>
      <div class="round1"></div>
      <div class="basemenus_btm">
        <a href='?t=account'>Account</a>
      </div>
    </td>
    {{/if}}
    <td style="width:100%"></td>
  </tr>
</table>

{{if $menu->a == 1}}
<div align="center">
  <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
    <tr>
      <td class="basemenus_td0" align="center">
        <table class="basemenus_table3" cellPadding="0" cellSpacing="0" border=0>
          <tr>
            <td {{if $menu->b == 1}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
              <a href='?t=client'>Add New</a>
            </td>
            <td class="basemenus_td5">|</td>
            <td {{if $menu->b == 2}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
              <a href='?t=clients'>Search</a>
            </td>
            <td class="basemenus_td4"></td>
          </tr>
        </table>
      <td>
    </tr>
  </table>
</div>
{{elseif $menu->a == 2}}
<div align="center">
  <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
    <tr>
      <td class="basemenus_td0" align="center">
        <table class="basemenus_table3" cellPadding="0" cellSpacing="0" border=0>
          <tr>
            <td {{if $menu->b == 1}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
              <a href='?t=visabatch'>Add New</a>
            </td>
            <td class="basemenus_td5">|</td>
            <td {{if $menu->b == 2}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
              <a href='?t=visas'>Search</a>
            </td>
            <td class="basemenus_td4"></td>
          </tr>
        </table>
      <td>
    </tr>
  </table>
</div>
{{elseif $menu->a == 3}}
<div align="center">
  <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
    <tr>
      <td class="basemenus_td0" align="center">
        <table class="basemenus_table3" cellPadding="0" cellSpacing="0" border=0>
          <tr>
            <td {{if $menu->b == 1}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
              <a href='?t=duevisas'>Expiring Visa</a><span id="basemenu_expiring_visa" style="color: #ff0000;font-family: Comic Sans MS;" />
            </td>
            <td class="basemenus_td5">|</td>
            <td {{if $menu->b == 2}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
              <a href='?t=dueschools'>Next School Payment</a><span id="basemenu_next_school_payment" style="color: #ff0000;font-family: Comic Sans MS;" />
            </td>
            <td class="basemenus_td4"></td>
          </tr>
        </table>
      <td>
    </tr>
  </table>
</div>
{{elseif $menu->a == 4 && $u->type == $smarty.const.USER_TYPE_ADMIN}}
<div align="center">
  <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
    <tr>
      <td class="basemenus_td0" align="center">
        <table class="basemenus_table3" cellPadding="0" cellSpacing="0" border=0>
          <tr>
            <td {{if $menu->b == 1}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                <a href='?t=users'>Manage Staffs</a>
            </td>
            <td class="basemenus_td5">|</td>
            <td {{if $menu->b == 2}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                <a href='?t=templates'>Manage Templates</a>
            </td>
            <td class="basemenus_td5">|</td>
            <td {{if $menu->b == 3}}class="basemenus_td3Hilight"{{else}}class="basemenus_td3"{{/if}}>
                <a href='?t=system'>Manage Company</a>
            </td>
            <td class="basemenus_td4"></td>
          </tr>
        </table>
      <td>
    </tr>
  </table>
</div>
{{else}}
<div align="center">
  <table class="basemenus_table2" cellPadding="0" cellSpacing="0" border=0>
    <tr><td>&nbsp</td></tr>
  </table>
</div>
{{/if}}
<table id="basemenu_nav" cellPadding="0" cellSpacing="0" style="font-size: 14px;font-family: Trebuchet MS;display:none;margin:0 0 20px 0;width:100%;height: 32px;border-left: solid 1px #c0c0c0;border-right: solid 1px #c0c0c0;background-image: url(image/nav/background.png);"></table>
